<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2019 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// [ 应用入口文件 ]
namespace think;

use app\model\TaskUserResultModel;
use think\facade\Queue;

require __DIR__ . '/vendor/autoload.php';
$app = new App();
$http = $app->http;
$http->run();
$id = [
    5625,11899,12483,12724,14029,15144,15157,15167,15172,
    15206,15207,15211,15256,15262,15276,15293,15300,15304,
    15306,15313,15340,15343,15352,15363,
    15364,15375,15389,15394,15397,15410,15438,15439,15441,
    15447,15448,15466,15487,15504,15505,15527,15531,15569,15576,
    15578,15584,15611,15612,15616,15619,15630,15640,15655,15656,
    15657,15669,15674,15683,15689,15706,15727,15728,15731,15744,15753,
    15769,15779,15787,15798,15805,15816,15822,15824,15848,15852,15860,
    15888,15891,15908,15910,15922,15937,15939,15952,15962,15973,15980,15983,
    15984,15990,15998,16001,16002,16003,16009,16011,16014,16027,16036,16064,
    16071,16077,16122,16132,16162,16178,16183,16191,16206,16214,16219,16244,
    16252,16254,16267,16278,16281,16294,16295,16303,16306,16318,16349,16356,16382,
    16383,16433,16434,16440,16448,16460,16465,16471,16484,16491,16493,16500,
    16574,16578,16589,16590,16595,16596,16608,16614,16615,16618,16633,16637,16655,
    16663,16675,16686,16690,16701,16702,16712,16722,16747,16751,16759,16786,16788,
    16789,16790,16800,16807,16817,16819,16822,16836,16852,16863,16866,16867,16875,16900,
    16901,16924,16925,16933,16934,16936,16940,16950,16951,16971,16983,16986,16994,16997,
    17002,17004,17013,17025,17035,17048,17049,17078,17080,17099,17110,17118,17130,17131,
    17134,17135,17136,17142,17159,17182,17184,17187,17200,17205,17212,17221,17228,17232,
    17254,17256,17285,17290,17296,17301,17304,17319,17327,17331,17337,17338,17343,
    17359,17361,17362,17364,17377,17386,17403,17410,17411,17414,17439,17446,17461,
    17477,17485,17498,17509,17512,17519,17550,17563,17566,17568,17581,17596,17597,
    17615,17621,17628,17648,17702,17724,17736,17748,17749,17764,17765,17779,17781,
    17793,17811,17815,17823,17835,17840,17847,17850,17859,17862,17872,17874,17887,
    17891,17894,17897,17901,17906,17909,17920,17925,17931,17936,17937,17941,17949,
    17957,17993,17995,17996,18001,18019,18022,18041,18051,18056,18069,18086,18103,
    18108,18119,18152,18199,18207,18228,18229,18231,18233,18236,18239,18240,18241,
    18243,18252,18277,18280,18288,18290,18300,18301,18310,18311,18315,18317,18334,
    18335,18340,18349,18354,18364,18367,18371,18372,18374,18375,18379,18382,18387,
    18390,18399,18433,18437,18441,18457,18467,18476,18487,18500,18501,18508,18513,
    18517,18526,18536,18557,18559,18565,18575,18588,18610,18612,18619,18626,18634,
    18635,18645,18647,18652,18660,18662,18663,18671,18695,18697,18707,18716,18738,
    18742,18750,18753,18755,18756,18763,18768,18769,18777,18780,18793,18816,18817,
    18824,18826,18827,18831,18832,18833,18853,18882,18892,18894,18903,18911,18925,
    18943,18958,19026,19100,19118,19121,19131,19357,19376,19800,20230,20261,21758,
    21769,21770,21771,21780,21791,21794,21815,21834,21866,21867,21880,21881,21893,
    21910,21912,21919,21927,21936,21962,21984,21987,21992,21998,22000,22002,22006,
    22023,22027,22029,22046,22055,22059,22061,22063,22092,22097,22113,22117,22125,
    22128,22132,22134,22138,22139,22140,22162,22171,22174,22197,22198,22199,22203,
    22220,22225,22244,22245,22246,22248,22252,22259,22260,22322,22336,22343,22347,
    22358,22361,22371,22375,22387,22390,22397,22403,22409,22412,22419,22420,22424,
    22433,22436,22439,22443,22444,22454,22455,22470,22472,22490,22520,22524,22527,
    22540,22550,22551,22558,22582,22586,22603,22606,22612,22614,22620,22621,22627,
    22628,22629,22630,22633,22636,22640,22647,22655,22658,22663,22677,22678,22687,
    22692,22696,22706,22709,22711,22714,22720,22723,22725,22734,22735,22737,22745,
    22758,22767,22768,22769,22773,22775,22777,22778,22779,22787,22790,22795,22797,
    22811,22816,22817,22818,22819,22835,22837,22860,22861,22865,22869,22871,22883,
    22885,22920,22939,22943,22951,22957,23001,23023,23034,23038,23064,23069,23074,
    23077,23085,23098,23099,23100,23104,23297,23330,23334,23338,23346,23347,23350,
    23368,25695,25915,25922,25966,25993,26003,26005,26007,26032,26103,26108,26119,
    26123,26135,26146,26147,26149,26150,26151,26152,26153,26154,26155,26156,26157,
    26160,26161,26162,26163,26164,26165,26215,26242,26252,26259,26273,26275,26279,
    26290,26293,26346,26349,26370,26378,26380
];
//$TaskUserResultModel = new TaskUserResultModel();
try {
//    $data = $TaskUserResultModel->where('id','in',$id)->column('id');
    foreach ($id as $item){
        if (!Queue::push(\app\job\CronJob::class, [
            'method' => 'personChartsRecover',
            'data' => [
                'type' => 'task',
                'id' => $item
            ],
        ], 'CronJob')) throw new \Exception('队列任务错误！');
    }
    echo '回复成功！';
} catch (\Exception $e) {
    echo error($e->getMessage(), $e->getCode(),[
        'line' => $e->getLine(),
        'file' => $e->getFile(),
    ]);
}